package com.ba.base.view

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.ba.base.R
import com.ba.base.view.web.WebActivity


/**
 * zp
 *
 * 公共web页面
 */
@Route(group = "normal", path = "/normal/common/web")
class CommonWebActivity(
    override val layoutId: Int = R.layout.activity_common_web,
    override val reload: Boolean = false
) : WebActivity() {

    @Autowired(name = "url")
    @JvmField
    var mUrl: String? = null

    @Autowired(name = "title")
    @JvmField
    var title: String? = null


    override fun initData(savedInstanceState: Bundle?) {

    }

    override fun initView() {
        super.initView()
        title?.let {
            setTitleName(it)
        }
        mWebView?.loadUrl(mUrl)
    }

    override fun getData() {}
    override fun notifyTheme(data: ThemeData) {
    }

}